from sqlalchemy import Column, String, Date, JSON, Integer

from common.models.base import AuditBase


class User(AuditBase):
    username = Column(String(45), nullable=False, comment="姓名")
    gender = Column(Integer, nullable=True, comment="性别")
    id_number = Column(String(45), nullable=True, comment="身份证号")
    phone_number = Column(String(45), nullable=True, comment="手机号")
    email = Column(String(45), nullable=True, comment="邮箱")
    birth_date = Column(Date, nullable=True, comment="生日")
    avatar = Column(String(255), nullable=True, comment="头像")
    area = Column(JSON, nullable=True, comment="地区")
    address = Column(String(45), nullable=True, comment="地址")
    job = Column(String(45), nullable=True, comment="职业")
    tags = Column(JSON, nullable=True, comment="标签")
    description = Column(String(255), nullable=True, comment="描述")